import Layout from '@/layout'
export default {
  // 因为封装组件的人选用的key值是path，如果以及路由用'/'，二级路由用department的话，会报一个key 的错
  // 访问的方法，一级路由的路径拼接二级路由的路径就可以
  path: '/employees',
  component: Layout,
  name: 'employees',
  children: [{
    path: '',

    component: () => import('@/views/employees/index.vue'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  }, {
    path: 'import',
    component: () => import('@/views/import/index.vue'),
    hidden: true
  }, {
    path: 'detail/:id',
    component: () => import('@/views/employees/detail.vue'),
    hidden: true
  }
  ]
}
